package com.komon.object.request;

import java.net.URI;

import com.komon.constant.HttpMethod;

public final class RequestLine {
	private final HttpMethod method;
	private final URI uri;
	private final String version;
	
	public RequestLine(HttpMethod method, URI uri, String version) {
		this.method = method;
		this.uri = uri;
		this.version = version;
	}
	public HttpMethod getMethod() {
		return method;
	}
	public URI getUri() {
		return uri;
	}
	public String getVersion() {
		return version;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "[method=" + method.toString() + ", uri=" + uri + ", version="
				+ version + "]";
	}
	
}
